//
//  GlobalSet.m
//  Dolphin
//
//  Created by Handymood on 11-5-26.
//  Copyright 2011 __Hanydmood__. All rights reserved.
//

#import "GlobalSet.h"

@implementation GlobalSet

@synthesize  align;
@synthesize  albumListPath;

@synthesize  fit_with_screen;
@synthesize  active_page_num;
@synthesize  page_width;
@synthesize  page_height;
@synthesize  page_width_iphone;
@synthesize  page_height_iphone;
@synthesize  page_num;
@synthesize  status_bar_hidden;
@synthesize  allowrotate;
@synthesize  show_toolbar_at_init;
@synthesize  fit_page_size;

@synthesize  bg_img;
@synthesize  bg_img_iphone;
@synthesize  bg_snd_link;

@synthesize  bg_color;

@synthesize  fullscreen_mode;
@synthesize  bg_snd_play_at_init;
@synthesize  auto_play_on;
@synthesize  auto_play_at_init;
@synthesize  auto_play_time_tick;

@synthesize  landscape_two_page;

@synthesize  single_page_zoom_min;
@synthesize  single_page_zoom_max;

@synthesize featureImg;
@synthesize featureUrl;

-(void) initDefaultSet
{
    align = @"v";
    fullscreen_mode = FALSE;
    
    fit_with_screen = TRUE;
    show_toolbar_at_init = TRUE;
    
    active_page_num = 5;
    
    bg_img = @"";
    bg_img_iphone = @"";
    
    bg_color = 0x000000;
    
    page_width = 320;
    page_height = 460;
    
    single_page_zoom_min = 1;
    single_page_zoom_max = 2;   
    
    featureImg = @"";
}

-(void) toString
{
     NSLog(@"align:%@  page_width:%d page_height:%d status_bar_hidden:%d allowrotate:%d",
                    align,page_width,page_height,(int)status_bar_hidden,(int)allowrotate);
}

-(void) reset
{
    if(align)
        [align release];

    if(bg_img)
        [bg_img release];
    
    if(bg_img_iphone)
        [bg_img_iphone release];
    
    if(bg_snd_link)
        [bg_snd_link release];
}

@end
